package com.tds.springbootdemo2.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * Copyright (C) 2014-2023 天津紫藤科技有限公司. Co. Ltd. All Rights Reserved.
 *
 * @author tongdashuai
 * @version 1.0
 * @description
 * @module
 * @date 2024/10/8 13:47
 */
@Data
public class AjaxResult implements Serializable {

    private static final long serialVersionUID = 3765266337993930076L;

    private Integer code;

    private String msg;

    private String info;

    public static AjaxResult success() {
        AjaxResult res = new AjaxResult();
        res.setCode(200);
        res.setMsg("success");
        res.setInfo("success");
        return res;
    }
}
